# coding=utf-8
# 全世界最帅的帅哥
from enum import Enum


class ResultEnum(Enum):
    """消息类型"""

    fail = (500, "失败")
    success = (200, "成功")

    @property
    def code(self):
        return self.value[0]

    @property
    def description(self):
        return self.value[1]
